<div class="wrapper" cg-busy="{promise:loading,message:'正在加载...'}">
<form class="form-inline">
	<select class="form-control" ng-model="search.signPointId">
		<option value="">全部报名点</option>
		<option ng-repeat="item in signPoints" ng-value="item.id">{{item.groupName}}</option>
	</select>
	<select class="form-control" ng-model="search.examTypeId">
		<option value="">全部考试类型</option>
		<option ng-value="86">全国统考</option>
		<option ng-value="87">技能高考</option>
		<option ng-value="88">高职单招</option>
	</select>
	<select class="form-control" ng-model="search.created">
		<option value="">是否已生成</option>
		<option ng-value="false">未生成</option>
		<option ng-value="true">已生成</option>
	</select>
	<div class="pull-right wrapper-xs h3">
		总计：<span class="text-info">{{getSum()}}</span> 人
	</div>
	</form>

<div class="m-t">
	<div class="panel">
		<table class="table table-striped">
			<thead>
				<tr>
					<th>#</th>
					<th>报名点</th>
					<th>考试类型</th>
					<th>科类</th>
					<th>考生类型</th>
					<th>人数</th>
					<th>开始编号</th>
					<th>结束编号</th>
					<th>生成时间</th>
					<th>操作</th>
				</tr>
			</thead>
		
		<tbody>
			<tr ng-repeat="item in signCards | filter:search">
				<td>{{$index+1}}</td>
				<td>{{item.signPoint.groupName}}</td>
				<td>{{item.examType.name}}</td>
				<td>{{item.subject.name}}</td>
				<td>{{item.periodType == 'CURRENT'?'应届':'往届'}}</td>
				<td>{{item.totalCount}}</td>
				<td>{{item.startIndex}}</td>
				<td>{{item.endIndex}}</td>
				<td>{{item.createdTime | date}}</td>
				<td>
					<a href="javascript:void(0)" ng-show="!item.created && groupType != 'signpoint'" ng-click="generate(item)" class="text-info"><i class="fa fa-toggle-right" ></i>&nbsp;生成</a>&nbsp;
					<a href="javascript:void(0)" ng-if="!item.created" ng-click="remove($index)" class="m-l text-danger"><i class="fa fa-times" ></i>&nbsp;撤销</a>
					&nbsp;
					<a href="javascript:void(0)" ng-if="item.created" ng-click="print(item)" class="m-l text-info"><i class="fa fa-print" ></i>&nbsp;打印</a>
				</td>
			</tr>
		</tbody>
		</table>
	</div>
	<!--
  <div class="row">
    <div class="col-md-4" ng-repeat="item in signCards">

          <div class="panel no-border">
            <div class="panel-heading no-border">          
            <span class="text-lt">{{item.createdTime | date}}</span>
        </div>
        	<div class="wrapper-xs text-center b-b b-light">
          <h2 class="m-t-none">
            <span class="text-2x font-thin text-lt">{{item.totalCount}}</span>
            <span class="text-xs">人</span>
          </h2>
        </div>
        <div class="hbox b-b b-light">
              <div class="col wrapper text-center">
                <span class="h3">{{item.examType.name}}</span>
              </div>
              <div class="col wrapper">
                <span class="h3">{{item.subject.name}}</span>
              </div>
            </div>
            <div class="hbox">
              <div class="col wrapper">
                <span>开始编号</span>
                <div class="h4 text-primary font-thin">{{item.startIndex}}</div>
              </div>
              <div class="col wrapper">
                <span>结束编号</span>
                <div class="h4 text-primary font-thin">{{item.endIndex}}</div>
              </div>
            </div>
            <div class="panel-footer bg-light lter wrapper">
              <div class="row">
                <div class="col-xs-4">
                  <small class="text-muted block">Active</small>
                  <span class="text-md">1,500</span>
                </div>
                <div class="col-xs-4">
                  <small class="text-muted block">Inactive</small>
                  <span class="text-md">10,430</span>
                </div>
                <div class="col-xs-4">
                  <small class="text-muted block">Sleeping</small>
                  <span class="text-md">400</span>
                </div>
              </div>
            </div>
      </div>
    </div>
	</div>
	-->
	</div>
	</div>